function p = prob_one(a, m, alpha)
a_bin = bin2str(a, 0, m);
p = 1;
for i = 1:m
    i_digit = a_bin(i);
    if(i_digit == '1')
        p = p * alpha;
    else
        p = p * (1-alpha);
    end
end
end